package com.example.mybatisplusdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplusdemo.model.domain.Product;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 存储商品详情 Mapper 接口
 * </p>
 *
 * @author lqj
 * @since 2025-06-24
 */
public interface ProductMapper extends BaseMapper<Product> {

    Page<Product> pageList(@Param("page") Page<Product> page, @Param("product") Product product);

    int logicDeleteById(@Param("id") Long id);

    void updatePointsId(@Param("productId") Long id, @Param("pointsId") Long id1);

    Page<Product> pageListWithSort(@Param("page") Page<Product> page, @Param("param") Map<String, Object> paramMap);
}
